Removing $result from UserLoadAfterLoadFromSession hook, as it was unused.
authorRyan Lane <laner@users.mediawiki.org>
Mon, 13 Oct 2008 19:23:27 +0000 (19:23 +0000)
committerRyan Lane <laner@users.mediawiki.org>
Mon, 13 Oct 2008 19:23:27 +0000 (19:23 +0000)
includes/User.php

index 6436972..6888de3 100644 (file)
@@ -247,7 +247,7 @@ class User {
                                break;
                        case 'session':
                                $this->loadFromSession();
-                               wfRunHooks( 'UserLoadAfterLoadFromSession', array( $this, &$result ) );
+                               wfRunHooks( 'UserLoadAfterLoadFromSession', array( $this ) );
                                break;
                        default:
                                throw new MWException( "Unrecognised value for User->mFrom: \"{$this->mFrom}\"" );